package hk.hku.hooku.util;

import hk.hku.hooku.pojo.EventChoice;

import java.util.ArrayList;
import java.util.Comparator;
import java.util.Date;
import java.util.Map.Entry;

public class DateEntryComparator implements
		Comparator<Entry<Date, ArrayList<EventChoice>>> {

	@Override
	public int compare(Entry<Date, ArrayList<EventChoice>> e1,
			Entry<Date, ArrayList<EventChoice>> e2) {
		return e1.getKey().compareTo(e2.getKey());
	}

}
